import collections
from typing import List


class Solution:
    def makeEqual(self, words: List[str]) -> bool:
        count = collections.Counter()
        for word in words:
            for ch in word:
                count[ch] += 1
        size = len(words)

        for num in count.values():
            if num % size != 0:
                return False

        return True


if __name__ == "__main__":
    print(Solution().makeEqual(words=["abc", "aabc", "bc"]))  # True
    print(Solution().makeEqual(words=["ab", "a"]))  # False
